package service.impl;

import java.util.List;

import dao.BookDao;
import dao.impl.BookDaoImpl;
import po.Book;
import service.BookManager;

public class BookManagerImpl implements BookManager {
	private BookDao bd=new BookDaoImpl();
	

	@Override
	public int addBook(Book b) {
		return bd.addBook(b);
	}

	@Override
	public List<Book> findAllBooks() {
		return bd.findAllBooks();
	}

	@Override
	public int deletBook(int id) {
		return bd.deletBook(id);
	}

}
